package Snake;

import javax.swing.*;
import java.net.URL;

public class Data {
    //相对引用“header.png”
    //绝对引用"/Statics/header.png"
    //游戏的头图
    public static URL headurl=Data.class.getResource("Statics/header.png");
    public static ImageIcon head=new ImageIcon(headurl);

    //食物
    public static URL foodurl=Data.class.getResource("Statics/food.png");
    public static ImageIcon food=new ImageIcon(foodurl);

    //蛇头朝左
    public static URL lefturl=Data.class.getResource("Statics/left.png");
    public static ImageIcon left=new ImageIcon(lefturl);

    //蛇头朝右
    public static URL righturl=Data.class.getResource("Statics/right.png");
    public static ImageIcon right=new ImageIcon(righturl);

    //蛇头向上
    public static URL upurl=Data.class.getResource("Statics/up.png");
    public static ImageIcon up=new ImageIcon(upurl);

    //蛇头超下
    public static URL downurl=Data.class.getResource("Statics/down.png");
    public static ImageIcon down=new ImageIcon(downurl);

    //蛇的身体
    public static URL bodyurl=Data.class.getResource("Statics/body.png");
    public static ImageIcon body=new ImageIcon(bodyurl);
    //

}
